Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squash test to test parent bank after squash #2961

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

sakridge
Copy link
Member

Problem

Missing test for when a parent's account set is still valid after a child squash.

Summary of Changes

Add a test for this scenario. Impetus is that the persistant accounts PR does not pass this test yet and that causes problems when the bank the RPC module is looking at doesn't match the one that is the latest which has been squashed.

Fixes #

@rob-solana
Copy link
Contributor

this isn't covered by the tests in accounts?

@rob-solana
Copy link
Contributor

ah, different Accounts impl ;)

@sakridge
Copy link
Member Author

@rob-solana not that i know of, but I admit I didn't look at your recent PR too closely yet to see if that does it.

@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #2961 into master will decrease coverage by <.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #2961     +/-   ##
========================================
- Coverage    78.3%   78.3%   -0.1%     
========================================
  Files         127     127             
  Lines       19705   19697      -8     
========================================
- Hits        15447   15435     -12     
- Misses       4258    4262      +4

1 similar comment
@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #2961 into master will decrease coverage by <.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #2961     +/-   ##
========================================
- Coverage    78.3%   78.3%   -0.1%     
========================================
  Files         127     127             
  Lines       19705   19697      -8     
========================================
- Hits        15447   15435     -12     
- Misses       4258    4262      +4

@sakridge
Copy link
Member Author

@rob-solana no I don't see any test that tests that the parent bank is ok after squash.

@sakridge sakridge merged commit 72214b2 into solana-labs:master Feb 26, 2019
@sakridge sakridge deleted the squash-test branch February 26, 2019 23:15
@rob-solana
Copy link
Contributor

my test of accountsdb_squash verifies that the previous db is ok after squash()

@rob-solana
Copy link
Contributor

but more tests mo-better ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants